package com.glodon.paas.databag.api.bean;

import java.io.InputStream;
import java.io.Serializable;

public class ResourceDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private String name;
    private String mime;
    private InputStream inputStream;
    private long length = -1;
    private long[] ranges = new long[] {};

    public ResourceDto() {
        super();
    }

    public ResourceDto(String name, InputStream inputStream, long length, long[] ranges) {
        super();
        this.name = name;
        this.inputStream = inputStream;
        this.length = length;
        this.ranges = ranges;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMime() {
        return mime;
    }

    public void setMime(String mime) {
        this.mime = mime;
    }

    public InputStream getInputStream() {
        return inputStream;
    }

    public void setInputStream(InputStream inputStream) {
        this.inputStream = inputStream;
    }

    public long getLength() {
        return length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    public long[] getRanges() {
        return ranges;
    }

    public void setRanges(long[] ranges) {
        this.ranges = ranges;
    }

}
